export const RoomConst = {
    CREATE_RESULT_CODE: {
        SUCCESS: 1,
        ALREADY_IN_ROOM: 2,
        COIN_NOT_ENOUGH: 3,
        ROOM_FULL: 4,
        GAME_NOT_OPEN: 5
    },
    ENTER_RESULT_CODE: {
        SUCCESS: 1,
        ALREADY_IN_ROOM: 2,
        ROOM_FULL: 3,
        ROOM_NOT_EXIST: 4
    }
}

export const RoomHint = {
    CREATE_RESUT: {
        [RoomConst.CREATE_RESULT_CODE.SUCCESS]: "创建成功",
        [RoomConst.CREATE_RESULT_CODE.ALREADY_IN_ROOM]: "已在房间中",
        [RoomConst.CREATE_RESULT_CODE.COIN_NOT_ENOUGH]: "金币不足",
        [RoomConst.CREATE_RESULT_CODE.ROOM_FULL]: "房间已满",
    },
    ENTER_RESUT: {
        [RoomConst.ENTER_RESULT_CODE.SUCCESS]: "进入成功",
        [RoomConst.ENTER_RESULT_CODE.ALREADY_IN_ROOM]: "已在房间中",
        [RoomConst.ENTER_RESULT_CODE.ROOM_FULL]: "房间已满",
        [RoomConst.ENTER_RESULT_CODE.ROOM_NOT_EXIST]:"房间不存在"
    }
}